<?php

/**
 * Person form.
 *
 * @package    form
 * @subpackage Person
 * @version    SVN: $Id: sfPropelFormTemplate.php 6174 2007-11-27 06:22:40Z fabien $
 */
class PluginPersonForm extends BasePersonForm
{
   
  public function setup()
  {
    parent::setup();
    
    $years = range(1875, date('Y')); //Creates array of years between 1875 and this year
    $years_list = array_combine($years, $years);
    $this->widgetSchema['birth_date'] = new sfWidgetFormDate(array('years'=>$years_list));

  }
}
